Create seriesgate.py