Great way to debug Python by pausing exec and letting you inspect variables: from IPython import embed; embed()

@williballenthin