Python Range Negative Step Function Definition