fixes for other python version