convert file comment to python format