Update master.py

Fixed segfault resulted by calling .stop() method instead of .Stop()