class MyData(object): pass mathObj = MyData() mathObj.x = 4 mathObj.y = 5 mathObj.x + mathObj.y mathObj.x * mathObj.y