more advanced python
merging