Python script for yaml merge