Support python >= 2.4 and fix for unidecode module

This change:
1) Enables to use pluginbase with Python version >= 2.4
2) Fixes the bug with unidecode module.