In java I had...

Comparator c = new Comparator() {
        public int compare(Object o1, Object o2) {
            return o1.toString().compareTo(o2.toString());
        }
    };

how i would turn this into Jython?

thanks.