Move a File to another directory using Python

During some processing on files, in my program, after the process has been completed i need to move the files from the main input directory to some other temporary directory, so that i can know, how many files are processed and how many are yet pending for processing.

I am accessing the list of files using os.listdir(), can anyone pls guide me how to move the whole file (with all the content, and without getting corrupted) to some other folder.

Thanks in advance !