ptrace in Python

This post is still a work-in-progress.