They published the code in a gist. It doesn't have a license, but since the python code is only 61 lines, would be trivial to rewrite yourself from their example.
https://gist.github.com/lopopolo-stripe/e00b4bfa0839c125ed7a...
https://gist.github.com/lopopolo-stripe/e00b4bfa0839c125ed7a...