while True:
    scan_generator = MyTable.scan(max_results=10, exclusive_start_key=esk)
for item in scan_generator:
    pass
else:
    break
esk = list(scan_generator.kwargs['exclusive_start_key'].values())
Pagination in Amazon DynamoDB using Boto