cleanup

- moved test into file
- use python 3 exec form
- compile to bytecode, then exec