- pass a str to exec() instead of an open file object

An open file object isn't supported anymore by python3.
This fixes issue #26.