Source Control python

I am looking for python for perforce example to get changelists (which has been submitted or pending) , revision , status , submit (to submit the changes of particular changelists) and to get untracked/uncontrolled files which has been added to deleted from workspace