Matplotlib Python Run Code Directly