Python 'interface' concept implementation