Typescript Interface Default Function Python