Update mini-project-3.py

minor fix for bugs