Bootstrap marked up form validation and generation in python