My Code - mostly Python