python3 fixes

plus lots of added tests
2 jobs for master in 20 seconds
Status Job ID Name Coverage
  Test
passed #98118
api-test-py2

00:00:20

69.3%
failed #98117
allowed to fail
api-test-py3

00:00:19

 
Name Stage Failure
failed
api-test-py3 Test
Creating test database for alias 'default'...
[{'Quota': {'status': 'updated', 'vec_sp': 2, 'vec_idp': 0}}, {'cpuTime': {'status': 'non-existent', 'vec_sp': -1, 'vec_idp': -1}}]
2019-08-02 09:37:19.776360+00:00
2019-08-02 09:37:19.776360+00:00
Destroying test database for alias 'default'...
ERROR: InvocationError for command '/var/gitlab-runner/builds/5a848846/0/saxid-federated-resource-management/frms/.tox/py36/bin/coverage run manage.py test' (exited with code 1)
___________________________________ summary ____________________________________
ERROR: py36: commands failed
ERROR: Job failed: exit status 1