Python trick: How to make lazy objects?