Try changing Popen to call