Fixed thread bug in parallel_mapproject.py
Cleanup ready for testing