def get_mod_func(callback):
 try:
  dot = callback.rindex(u'.')
 except ValueError:
  return (callback, u'')
 return (callback[:dot], callback[(dot + 1):])

def get_mod_func ( callback ) : try : dot = callback . rindex ( u'.' ) except ValueError : return ( callback , u'' ) return ( callback [ : dot ] , callback [ ( dot + 1 ) : ] )
converts django .