My master thesis python codes