Renamed set.py to setpy.py to avoid confusion with python inbuilt type set.
Fixed some syntax errors.