in search of the perfect python script