fix(python): make superdesk importable in python2.7

while superdesk might not run there, some parts can be reused