Support older version of python