The mysql module has been moved to db.mysql. Update your code to do: import db.mysql instead.
mysql
db.mysql
import db.mysql