Python3 fix classmethod problem.