Pydev Debug Support

Adds a new switch to add support for the Pydev debugger. This is used to hook into Blenders debug server and eclipse pydev debug server.

Standardised section layout. Minor code flow fix bug too.