pltting routine in python