Python implementation of Ruby's builder.