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