Array Slicing In Python Using Dictionaries