Typescript Function Type Variable Python Definition