Port of Ruby on Rails inflector to Python
