Fixed a problem with an experimental kwarg

Added a function to avoid potential problems with using experimental
`block` keyword argument of `matplotlib.pyplot.show` function.