I forgot to mention that there is a bit of manual work involved. Currently, the script can't figure out the categories if the class inherits from a class with an unknwon category. I already put in some classes and their known categories, so all derived classes will carry over the category. I believe it should be possible to also figure this problem out without defining some class categories by hand, but it is easier to just put the few base category classes in yourself
