Fix bug #1

Fix undefined Decimal and obj
Fix templating with noneable
Removed unused imports
Fix syntax according to PEP8