In Cisco ASA you can writing internal log buffer only iternal flash memory or ftp server. That script can copying logs to external flash memory and deleting logs from internal flash.
The project is a game of tic-tac-toe developed at the end of the Python Essentials 1 course provided by the Cisco Networking Academy. Where all the Python fundamentals are put into practice.