More regex and start of env.py