python: Remove inheritance for classes.