Fixed bugs in classdef.py