Updated policy flags, removing the policy keyword to shorten them and make them friendly
Removed unused printJSON() function.
Updated all datetime.now() calls to return ISO format strings.
Removed getuser import. Not needed.
Imported new modules: access, isfile from os. Added new function (untested) validateAccess().