qms = tms.query(hash_key=415772421368583351, max_results=2,
    exclusive_start_key=None)
for i in qms:
    print(i)
lek = qms.last_evaluated_key
qms = tms.query(hash_key=415772421368583351, max_results=2,
    exclusive_start_key=lek)
for i in qms:
    pass
Pagination in Amazon DynamoDB using Boto