Python Mysql Escape Single Quote