Added the python script for the library

The code isn’t always pretty, but it works and I’ve found it quite
useful when trying to solve Project Euler problems.