Typescript Dynamic Function Parameters In Python