fixed issue with python script storing article id as a string rather than an itnerger. Also added some ErrorType try/catch blocks in the python script