def _is_python_file(filename):
    """return true if the given filename should be considered as a python file

    .pyc and .pyo are ignored
    """
    return filename.endswith(('.py', '.so', '.pyd', '.pyw'))
