- My personal opinion is that with Python being an indentation-sensitive language it's not very respectful to forum members to post big listings of unformatted code and expect us to read this mess.
- It seems that you use something called "plugintools". There's nothing wrong with using various plugin helper libraries (well, even I wrote one ) but such specific question is better to address to that libraries authors/maintainers.