Explicit integer division (//) for total_pages

Use explicit integer division operator ( // ) for total_pages value. Regular division operator ( / ) results in float under Python 3.x.