Update a3.py

Completed all functions.