spec8: modify spec.py