import re


def normalize_version(version):
    """
    Normalize a version string by removing extra zeroes and periods.
    """

    return [int(x) for x in re.sub(r'(\.0+)*$', '', version).split('.')]