hasattr(class, method) statt 'method' in dir(class) verwenden (fixes #3)