Added try/except for python3 compatibility.
Update trange docstring to reflect using range on py3