xrange didnt make a huge difference
got rid of a redundant cast to string, python might have just ignored it anyways
little comment
Merge branch 'tryXRange' back in, didn't make huge difference
some old changes in the java version