If you’re having to work on this, python -m ast <path-to-a-file> is your best friend
main()
snakeoil.tools package
snakeoil.bash module