Generating interactive form from a python dictionary