fix plugin behavior on Python 3.3