Changing from call to Popen in commands