def _is_python_file( filepath ):
    """ Check if file is a python file """
    lower = filepath.lower()
    for x in [ ".py", ".pyc", ".pyo" ]:
        if lower.endswith( x ):
            return True
    return False