script.py: readd python2 support