some_list = [1, 2, 3]
string_slice = ':2'
some_list[slice(*[(int(i.strip()) if i else None) for i in string_slice.
    split(':')])]
string_slice = '::-1'
Python: Want to use a string as a slice specifier