enforce new style python classes