usying pyplot animation to increase framerate