Updated caslib.py to Version 2.0, as the changes are breaking