Can now generate weak forms from Python