swClassLib.py changed to adhere to PEP8.
Try except blocks replaced with get instead.