Java Counting Sort, python scripts