Added error handling to fibonacci.py
Added functions and initial error handling to pi.py