Pwntools is a CTF framework and exploit development library. Written in Python, it is designed for rapid prototyping and development and intended to make exploit writing as simple as possible.
Source code and additional information can be found here: https://github.com/Gallopsled/pwntools