Use Python logging framework rather than sysout^Wprint statements.
Use Python logging on client-side too.