I am new to Python and I came across a useful piece of code (Python recipe) here that I want to run.
I tried installing Python 3.5 and running it using the "python.exe scriptname.py" format but that lands me into syntax errors. Also tried opening the script in a Python IDE and tried running a syntax checker that again flags some errors. The fist error that i get is the the "os" field is not identified. The second one is the missing brackets around the print statement.
But from the multiple comments on the post in the link above, it appears to me that this should run out of the box.
How am i supposed to run a Python recipe? Is it any different from running a python script. I have heard of recipes in context of Chef so i'm not sure if this has anything to do with it.