There many ways to fetch stock prices with python, but easiest way I've found so far is to use the ystockquote module by Corey Goldberg. It works with python 2 and 3.
If you have pip installed:
pip install ystockquote
To use:
If you have pip installed:
pip install ystockquote
To use: