utils.py: change cast from input files

Values from the plotter input files can be floats.

Signed-off-by: Emilia Ciobanu <emma.ciobanu@gmail.com>