Sample polymorphism example in Python