fixed pythonjs issue 134 reported by dirkk0