my python program for the newer