I had to take out the figFolder = line from lynryd's code above. I was getting an error telling me the following:
Traceback (most recent call last):
File "<string>", line 4, in <module>
...***BUNCH OF STUFF I DELETED FROM ERROR MESSAGE***...
RuntimeError: Object: Parameter index out of range for GetParameterAsText