Python script execution cleanup.