pep8 fixes to list_dicts in historical prices
added unit test for list_dicts in historical_prices