Python Run Sql Query With Long Variables In Java