fixed style inversion
python 3 range