add rotate list python version