def _append_path(new_path):  # type: (str) -> None
    """ Given a path string, append it to sys.path """
    for path in sys.path:
        path = os.path.abspath(path)
        if new_path == path:
            return
    sys.path.append(new_path)
Given a path string, append it to sys.path