paco3.py: more improvements