Fix some obvious issues with the way subprocess.call() was being used; Flush stdout