Update spec.py

Made an attempt to create a "Swath ID".