User access

Added rights provision depending on user access.
Refactor -> PEP8. Corrected errors with An72.