Create a file in the given directory with
    a valid module name populated with the given txt.

    Returns:
        A path to the file

def create_module_file(txt, directory):
    """Create a file in the given directory with
    a valid module name populated with the given txt.

    Returns:
        A path to the file"""
    name = nonpresent_module_filename()
    path = os.path.join(directory, name)
    with open(path, 'w') as fh:
        fh.write(txt)
    return path