from pathlib import Path


def get_python_sources_in_directory(directory):
    """
    Gets all the python source files in
    the directory and all subdirectories

    :param directory: str
    :returns: List<pathlib.Path>
    """
    result = [ str(path) for path in Path(directory).rglob("*.py") ]
    return result