Make patcher python 2.5 friendly. Also, move the temp directory creation and cleanup into the main function.
Make patcher python 2.5 friendly. Also, move the temp directory creation and cleanup into the main function.

jwiggins/keyenst,jwiggins/keyenst