Support python 2.5 for client