pep8 79-line and get_path() to general form