[python] add palindromic ranges