You hope there are no other libraries
called mail in your import path.
Let's take Python for example. With Python, I am in control of the import path.I can put those two mail modules in:
stuff/mail
tools/mail
And then use them like this: from stuff import mail as mail1
from tools import mail as mail2
I don't have to hope for anything.