Moved location of re module import in series.py to resolve merge conflict