My common python functions