Is it possible to stop parsing python program at some point, for example, like in shell script using ‘exit’?