Bug 830968 - Gaia build/settings.py fails with 'invalid syntax' on with Python version 3+

Resolves issues with Gaia build and Python 3.