def splitpasswd(user):
    global _passwdprog
    if _passwdprog is None:
        import re
        _passwdprog = re.compile('^([^:]*):(.*)$')

    match = _passwdprog.match(user)
    if match: return match.group(1, 2)
    return user, None

# splittag('/path#tag') --> '/path', 'tag'
splitpasswd('user:passwd') -> 'user', 'passwd'.
dataset/ETHPy150Open ofermend/medicare-demo/socialite/jython/Lib/urllib.py/splitpasswd