Thanks for this - bit of a dab hand with Python so looking forward to giving this a whirl