updating Python file and adding C notes