Define xrange in compat
file -> open