fixing security issue with older import statement for python 2.4