Added codename argument to percentcurrent.py