Python merge

OK?
this is merged with a one liner so feel free to comment or propose something else