Python Class Run Function In Html