always stringify decimals. Better docstrings and a few PEP8.
Merge pull request #509 from niphlod/fix/json_and_decimals

always stringify decimals. Better docstrings and a few PEP8.