1)debugged def parseActions. 2)Cleaned up code related to downloading videos, in def downloadMovie and def playVideo.
replaced tempfile.mktemp with tempfile.NamedTemporaryFile.  Still need to replace tempfile.mktemp in the rest of the code.