I noticed strange behavior in my python scripts for wsadmin: It was not possible to assign boolean variables. A research showed that our stack uses an extremly old version of python:
WebSphere\bin>wsadmin.bat -lang jython -username user -password pw-c "import sys; print sys.version_info"
(2, 1, 0, 'final', 0)
That's an EXTREMELY old version. So old, that I need to look in Python's release history which say that this version is from April 2001 (!!!). Using such deprecated software is uncomfortable for development and can also harm the system. I don't want to know how much security breaches were included in software that is two decades old.
So please update to a supported version, at least in the 2.x branch. But I would recomment to directly upgrade on python 3 cause the 2.x branch itself is quite old and will loose his maintenance in 2020, too: https://pythonclock.org/