Switch from tabs to spaces for Python code
Improve error when service unavailable