in xar/py_util.py [0:0]
def parse_entry_point(entry_point):
"""
Parses a Python entry point and returns the module and function.
The two allowed formats are 'path.to.module', and 'path.to.module:function'.
In the former case, ('path.to.module', None) is returned.
In the latter case, ('path.to.module', 'function') is returned.
"""
module, sep, function = entry_point.partition(":")
if function and sep and module:
return (module, function)
else:
return (module, None)