human
Complete this python program:
def compare_package(version1, version2):
assistant
#Here is the Python code you requested.

    """Compare version packages.
    Return values:
    -1 first minor
    0 equal
    1 fisrt greater
    """
    def normalize(v):
        return [int(x) for x in re.sub('(\\.0+)*$', '', v).split('.')]
    return cmp(normalize(version1), normalize(version2))