title: execute perforce commands through python
body: <p>I am writing a simple script which will sync one perforce directory through python however I am not able to do so.
  It is not allowing me to execute anything in that [perforce] directory through script. 
           Can someone please suggest me how I can run commands like p4 login,p4 sync in that directory?</p>