setting up js+python functions to set default values on forms easier