Changing how I call Popen to allow background running