require 'IronPython' require 'Microsoft.Scripting' include Microsoft::Scripting::Hosting include IronPython::Hosting python = Python.create_engine scope = python.create_scope python.execute " class Foo(object): def bar(self): print 'Look ma, white-space-sensitivity!' ", scope python.execute "Foo().bar()", scope