Fix typos on swift_rings.py

* Wrong quotation marks fixed
* Missing "is" added to conditional