Sorry for the delay!
My OS is Windows 8.1. I'm running the script through the command prompt. This is exactly how I'm running the script and the steps I used to install Python:
(1) I downloaded Python 2.7.6 and installed to the folder C:\Python27. I moved the font files that I created (fnt file and the png files) to the Python27 folder.
(2) I added the following line to my environment variables:
Variable Name: Path
Variable Value: C:\Python27\;C:\Python27\Scripts\
(3) In the command prompt, I typed the following:
python fnt_to_json.py C:\Python27\constantia72px.fnt C:\Python27\constantia72px.json
(4) I then get the following output:
File "fnt_to_json.py", line 7
SyntaxError: invalid syntax
I'm assuming some of the steps are likely redundant, like going to the Python27 path. But if I try doing python call just at C:\ I get this error:
python: can't open file 'fnt_to_json.py': [Errno 2] No such file or directory
So I'm guessing I didn't add the path correctly to the environment variables. But going directly to the folder seems to work regardless.
Let me know if this gives you any more insight. Thanks so much!