Command Design Pattern In Python