human
I wrote the below code

    def normalize(v):
        return [int(x) for x in re.sub('(\\.0+)*$', '', v).split('.')]
    return cmp(normalize(version1), normalize(version2))

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def compare_package(version1, version2):