Small cleanup

* Few PEP-8 fixes.
* Removed unused functions that are implemented in different module.
* Add template mark for other template-directory too in PyCharm.
Fix checkout view csrf generation.
Adds a bit of access controlling.

* Checkout is forbidden until enabled from settings.
* Clerk codes cannot be printed without, at least, staff -flag.
Fix two item codes in dev-data