Added functions for ensuring deletion of file/dir
 - to ensure correct execution of tests with Travis where
   __pycache__ is not generated