[galaxy-dev] error while writing to pdf in python