Update credit_balance.py

Removed some redundancies.