python, java. Removed generics, simplified everything, fixed #65.