got rid of smgllib and replaced with htmlparser.
also trying to use new style classes and properties instead of old style classes (where applicable)