fixes #3
added regression test
added better regression test
fixed pep8 bugs
another pep8 fix
and that's why we unit test ;/
Coerce keys as str (allow int etc)