add keycodes to pymodule

add keycodes to pymodule
Merge branch 'dev'