Added version checking for class definition

so client.py works on python3