Make sure subprocesses run sequentially.

Use subprocess.call instead of subprocess.Popen. Removed delays between calls (sleep), as they are no longer needed.