Bugfix for python3 compatibility; unicode() function is undefined in 3.x

Pagination wasn't working in 3.x if the "url" argument is passed because `unicode` function no longer exists.