Python routines to ease getting/setting lots of attributes on an object at once