Updated isRevoked to properly calculate expiration time
Keep 2 spaces before model classes for pep8 compliance.
Separate imports into one entity per line.