added an extractproperty and fix pyrest type