Ensure proper WSGI return type in Python 3.