Small python util