Fix plugin importing code on python 2.6