Javascript Select Object From Array To Hashmap In Python