Typescript Constructor Function In Python With Parameters