python and mysql part