Solap4py adapted to Solap4py-java with speed improvement