a class about python connect mysql