python append dictionary to list in loop