Create xspec.py