- Add import sys
- Add lowercase assignemnt - self.locatingmethod=locatingmethod.lower()
- Remove Assert() expression