Python User Input Array Javascript Function Parameters