fixed python-mode hang