Thymeleaf Set Variable Sql Query Compiler Python