[python] inherit from object
[elixir] remove anonymous function
[python] correct typo