Fixed python3 and mysql tests