common: replace Rational typedef to a new class

* Issue in bindings with a typedef of a class defined by FFmpeg.
* Solution: create a class which is a wrapper of AVRational.
* Update pyTest which use Rational.