cant use xrange
allow np.int as values in ranges
Merge pull request #1168 from ContinuumIO/hotfix/np_int_in_ranges

Hotfix/np int in ranges