fixed use of a deprecated python property