Javascript style objects for python