pyterm: Apply pep8

Furthermore, replace "dir + path.os.sep + file" statements with
"os.path.join(dir, file)"