Upload swb.py module

Initial upload of the swb.py module.