Typescript Get Max Of Array In Python