add --lenient option also to normal command line
update and clean up cystdlib.py script