Fix template spelling error
Refactor parse_float function
PEP-8 style fixes