python3 support using six library