Returns relevant attributes as a dict.
		Args:
			rw 			if True only returns the read/write enabled object attributes

def to_dict(self, rw = False):
		'''Returns relevant attributes as a dict.
		Args:
			rw 			if True only returns the read/write enabled object attributes
		'''
		return {k:v for (k,v) in self.attributes.items() 
				if (v is not None and (not rw or (k in self.rw_attr_keys)))}