Replace types.StringTypes with string_types, refs #38.
Replace xrange, refs #38