Was not aware of this but seems it is not there natively in Python,but seems cool. Will try out in future.