I removed extra lines but keep the TkAgg and blit=True or it does not work on OSX.