python3 style object