fixed a circular import that only manifested itself under gunicorn