Change trades payout history field to float
pep8 clean up