Python Subprocess Use Pathologies