error logging via email
fix config in precompilation step
clean up pyc files recursively
catch socket errors and remove redundant close