neater looking startup for popen2 python
wrap python_header in a bunch of try-except