Javascript Get Object Value From Array Python Initialize Variable To Null