def module_name_split(name):
 if ('.' in name):
  (package_name, module) = name.rsplit('.', 1)
 else:
  (package_name, module) = ('', name)
 return (package_name, module)

def module_name_split ( name ) : if ( '.' in name ) : ( package_name , module ) = name . rsplit ( '.' , 1 ) else : ( package_name , module ) = ( '' , name ) return ( package_name , module )
split the module name into package name and module name .