Fix flake8 warning
Add parchment settings to test settings file
Fix bad request not returning from method
If encrypt is given a dict, encode as query string