added srand and python script to plot