fix AOJ language resolver to support Python2/3