Js Create Object Key From String To Float Python 2