Python code from my course work at uci