Comment out @profile so script can be run without memory profiler
Also removed unecessary regex import