python, java. Moved annotations to pdef, fixed #73.