BUG: fix python 3 dtype issue
Merging in MySQL support #2482