removed foreach code from python default.rb