created mint.py that handles both ECN and EN