Update Major.py

wrote some functions -Abira