Added python 2 vs 3 compatibility
Added python 2,3 compatibility