Add missing 'import datetime' to client.py