Python In Range Function Example Postgresql