Minor code cleanup
Preserve program name when translating to Python

Fixes #99.