Moved functions into enron.py