def normalize_package_name(s):
    """normalize_package_name formats the package name by following the style
    of the tokenizer of go.

    For example, "numpy.linalg" is mapped to ["numpy", ".", "linalg"]
    """
    try:
        p, m = s.split()
    except:
        # no package name exists, so just return the method
        return s.split() 
    tokens = p.split('.')
    i = 1
    while i < len(tokens):
        tokens.insert(i, ".")
        i += 2
    return tokens + [m]