Python and Fortran Numerical Implementations of the Polya Enumeration Theorem