BF: fix python version comparison and test