How To Force End Code In Python