Update characterSet_lib.py

copied from dd