tools/checklangs: Make python2 explicit
sub_sql: Fix missing local strnum