def repartir_consums_entre_lectures(consums, lectures_xml):
    """
    Sabem repartir en 2 escenaris:
        - Un consum per cada lectura
        - Un consum per X lectures
    NO sabem repartir:
        - Mes de un consum per un nombre diferent de lectures. per exemple 3 consums per 4 lectures
    """
    res = {}
    if len(consums) == len(lectures_xml):
        i = 0
        for l in lectures_xml:
            res[l] = consums[i]
            i += 1
    elif len(consums) == 1:
        consum = consums[0]
        import math
        parte_decimal, parte_entera = math.modf(consum)
        part_igual = int(parte_entera) / len(lectures_xml)
        residu = int(parte_entera) % len(lectures_xml) + parte_decimal
        l = None
        for l in lectures_xml:
            res[l] = part_igual
        if l:
            res[l] += residu
    return res
