A library for creating spies