def get_mod_func(callback):
    """Convert a fully-qualified module.function name to (module, function) - stolen from Django"""
    try:
        dot = callback.rindex('.')
    except __HOLE__:
        return (callback, '')
    return (callback[:dot], callback[dot+1:])
dataset/ETHPy150Open nigelkersten/pymacadmin/bin/crankd.py/get_mod_func