Pyhon utilities