Python - Modelled classes