No you don't need to quit the IDE. you just need to make sure the Serial monitor is not open.
opening the Serial line from Python will reboot your arduino. I've written a small tutorial on interfacing with Python. See Two ways communication between Python3 and Arduino