Python library for linear error-correcting codes