trying to figure out json return on flask