Basically, I'm trying to automatically correct user submitted emails with typos that are only a few letters off. For instance, if a user accidentally submits gamil.com or gmial.com instead of gmail.com, I would like to correct it. What's a good method for handling this task?
Use pymailcheck:
https://pypi.python.org/pypi/pymailcheck/1.0.0 or https://github.com/dbarlett/pymailcheck
You can use it to check the email-addresses entered by users and suggest the correctly written email-address.