Refactor Emoter.py based on advice from Code Review.