Python3 compatibility

The code seems fine for Python3. Just the import must be changed.

However, the requirements.txt file is wrong for Python3 and cannot be fixed. Since this is only used for a warning, it seems ok to me. At least the plugin works out of the box again.