js style objects for python