Update baserpc.py

modified code for restarting the server