Fixing deprecation warning on py26