# substitution
import re

text = 'purple <EMAIL>, blah monkey <EMAIL> blah dishwasher'

print re.sub(r'([\w\.-]+)@([\w\.-]+)', r'\<EMAIL>', text)

# substitution
import re

text = 'purple <EMAIL>, blah monkey <EMAIL> blah dishwasher'

print re.sub(r'([\w\.-]+)@([\w\.-]+)', r'\<EMAIL>', text)

# substitution