Typescript Input Element In Array Python Methods And Classes