utilities (for me), written in python (2.7)