Update 531.py

Using sys.exit() rather than exit().
By importing sys and calling exit(), we're using sys.exit rather than regular exit().
Regular exit() is more for interactive mode, and not meant for programs.
https://stackoverflow.com/questions/6501121/the-difference-between-exit-and-sys-exit-in-python