python: Load Python support via commands

Older versions of GDB and new versions built without Python support will
stop parsing the configuration if they encounter a Python command.  By
wrapping the Python extensions in macros they can be loaded when needed
and won't cause issues for unsupported GDB's.