Should be self.removeTransformationOutput( transDict['TransformationID'] ) -> res = self.removeTransformationOutput( transDict['TransformationID'] )