How to Define Range in Python