def split_module(module):
    """
    split module string to file name and function name.

    :param module: A string of the command line `module.py:obj`.
    """
    parts = module.split(":", 1)
    if len(parts) != 2:
        raise ImportError("Failed to find attribute")
    f, obj = parts[0], parts[1]
    return f, obj