In our company we use python to make maps, but we go with the traditional GIS approach, dependencies?: postgis and mapnik.
The first two examples would be solved by a single postgis query, the last one maybe would require some extra work. But nice work anyway, bookmarked.