Javascript Function Return Array Of Strings In Python