Using Python objects as a source of data