from pathlib import Path


def find_modules(x):
    """Get all python files given a path

    Args:
        x (string): file path

    Returns:
        (list): recursive list of python files including sub-directories
    """
    return Path(x).rglob('*.py')