Fix regression bug where folders were not generated.
PEP8 fixes.
Allow non-frozen testing of exception catching.
Support avs importing.