Python Create Json Array Dynamically Definition