@staticmethod
def _file_can_be_imported(entry):
    """ Verify if a directory entry is a non-magic Python file."""
    if entry.is_file() and not entry.name.startswith('__'
        ) and entry.name.endswith('.py'):
        return True
    return False
