Creating Python Code With Multiple Functions Onclick Javascript