changed form layout in python