Python Capture Output Of Shell Command Not Working