Fix invalid iterators used with -ve ranges - Python

Fixes li_std_containers_int testcase.
Valgrind reports no more problems for this testcase.
Fix some invalid iterator usage in Python when deleting/inserting slices from/into containers