modified swagtastic.py