def get_other_props(all_props, reserved_props):
 if (hasattr(all_props, 'items') and callable(all_props.items)):
  return dict([(k, v) for (k, v) in all_props.items() if (k not in reserved_props)])

def get_other_props ( all_props , reserved_props ) : if ( hasattr ( all_props , 'items' ) and callable ( all_props . items ) ) : return dict ( [ ( k , v ) for ( k , v ) in all_props . items ( ) if ( k not in reserved_props ) ] )
retrieve the non-reserved properties from a dictionary of properties @args reserved_props: the set of reserved properties to exclude .