Function To Convert String To Float In Python 3