close connections when done with a tile in ingest.ingest_tiles
PEP8 improvements