Signals Processing code snippets from PyCon 2013 tutorial