Fix bug #1

Fix undefined Decimal and obj
Fix templating with noneable
Removed unused imports
Fix syntax according to PEP8
Fix non-noneable KeyError, adding test case
Merge pull request #2 from MyGGaN/master

Fix bug #1