Using the python common you can run python on a Chromebook. Simply Write python3 name_of_file.py (for Python 3). If you're using a different version of python, write python name_of_file.py for Python2