Standard import of constants

Make all importing of `constants.py` use the `import constants as const` syntax.