def get_postcode(elem):
    """This function takes the 'tag' element as an input and
    return the elements for which the keys are equal to 'addr:postcode'"""
    return (elem.attrib['k'] == "addr:postcode")