added python version, texturing still broken for both C and python versions