Yes, but there's no need to hook openjk, since it is all open source. Python probably won't work all that well, since openjk is in C (with a little bit of C++), but you I guess you could maybe make python work in a weird roundabout sort of way. Others could probably give you more advice about doing that sort of thing, as I'm not really all that familiar with this particular part of the source code. I'd recommend hopping on #jacoders on irc for advice after you download the code, compile it, and then read some of the console related bits.