Fixed email parsing issue (from bytes vs. from string) for Python 3.X vs. 2.X