How to get a slice tuple using step parameter in python?