Added Python 2 & Python 3 support in same codebase.

Signed-off-by: Sebastián J. Seba <ssebastianj@gmail.com>