Modified serialmanager.py to work with gmail.