some cleanup in constants.py, readability

I would be able to view the file on my phone if this PR is accepted :dancers:

Tests run and a light smoke test shows no difference.