added initial python2 support

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>