tests: ProcessBase -> run_python

Extracted inline code to permanent files
Python3 compatibility of test files
tests.run_python: new_tmp flag to create new temporary directory and
    pass it to child process via environ[TMP].
    The directory with any files is removed when child process is
    finished.
tests.rmtree: silent version of shutil.rmtree()