pylib: add an extra % to the sql query with like

sqlalchemy will bail if we don't use two %% in all our query