http://fastml.com/running-external-programs-from-python/