Postgresql Integer Size In Python For Loop