Export of Python files working

This address #3 but has the problem listed in issue #15.

Needs testing.