Fix converting floats from Perl to Python with different locale

In locales where the decimal separator is a comma, Python could not
convert localized Perl floats to numbers. Fixed by removing the
converion to and from strings and instead accessing the numeric value
directly. This should also be massively faster.