Hypothesis strategies for generating Python programs, something like CSmith. This is definitely pre-alpha, but if you want to play with it feel free! You can even keep the shiny pieces when - not if - it breaks.