bump version to 0.5
replace assertIn(a, b) w/ assertTrue(a in b) for Python 2.6
replace xrange with range for Python 3 compat