connect python forms with frontend