PEP8 compliance and unit test fix.
Renaming python template files.

fixes #458
The top redirection feature will be applied only to simple users.

fixes #457