started work on python mode
fixed a problem with multiple tabs not closing in chrome