Fix import of Flask globals store
PEP8ify code
Create index & layout template