Python Logging Print To Screen Using Javascript