python flutuar na conversão int

Eu tenho um problema que realmente me deixa louco. Normalmente fazendoint(20.0) resultaria em20. Por enquanto, tudo bem. Mas:

levels = [int(gex_dict[i]) for i in sorted(gex_dict.keys())]

enquantogex_dict[i] retorna um float, por ex.20.0, resulta em:

"invalid literal for int() with base 10: '20.0'"

Estou a apenas um passo de mastigar a última parte do meu teclado.

questionAnswers(4)

yourAnswerToTheQuestion