Cleanup cfd.py

Removed unneeded escapes from some regexes
Removed unused variables

Change-Id: I2e0b9356d4433b2c0c7ba6dcaf6273d04fba9daf
Merge "Cleanup cfd.py"