If you are looking for something similar in other languages - check out siddontang/go-mysql (Go), noplay/python-mysql-replication (Python). You might need it for several reasons: you don't want to ...
Using pymysql instead of Mysql module: If you were trying to use mysql into your application it will crash, so use pymysql to access mysql server. I used mysql and its crashes after deploying into apk ...