Refactor.

Rename RosAPI methods.
Extract writing and reading lenght to separate class.

Prepare to support python < 3.2