working java-matrix cal & python backmap