new medium support for python 3