Resource Form + Unittests

Fix flake8 errors