How to get substrings using the parameter step of slices notation in
python?