def convertModuleName(pythonFile, pythonModule):
    """
    If the module is "__init__", changes the name of the module to an
    appropriate name. Warning, if the module name is None, will return None

    Parameters:
        pythonFile - The python file path corresponding to the module
        pythonModule - The name of the module

    Returns:
        pythonModule - The converted name of the module
    """

    if pythonModule == "__init__":
        if len(pythonFile.split("/")) > 1:
            pythonModule = pythonFile.split("/")[-2]
        elif len(pythonFile.split("\\")) > 1:
            pythonModule = pythonFile.split("\\")[-2]

    return pythonModule