Python 3 support in `daterange` generator

Add `long`, `unicode`, and `basestr` type aliases for Python 3.