[elixir] refactor to privated methods
[python] use static method
[python] use endswith()
[python] use is for None check
[python] inherit from object