diff --git a/modules/seq/alg/pymod/wrap_seq_alg.cc b/modules/seq/alg/pymod/wrap_seq_alg.cc
index 6597e459e522c23046ad636870a60a4fc966ce69..37d1609b771b0ad07ff93e1cd5c849243a2525bc 100644
--- a/modules/seq/alg/pymod/wrap_seq_alg.cc
+++ b/modules/seq/alg/pymod/wrap_seq_alg.cc
@@ -61,6 +61,8 @@ BOOST_PYTHON_MODULE(_ost_seq_alg)
   class_<SubstWeightMatrix, SubstWeightMatrixPtr>("SubstWeightMatrix", init<>())
     .def("GetWeight", &SubstWeightMatrix::GetWeight)
     .def("SetWeight", &SubstWeightMatrix::SetWeight)
+    .def("GetMinWeight", &SubstWeightMatrix::GetMinWeight)
+    .def("GetMaxWeight", &SubstWeightMatrix::GetMaxWeight)
   ;
   
   def("MergePairwiseAlignments", &MergePairwiseAlignments);
diff --git a/modules/seq/alg/src/subst_weight_matrix.hh b/modules/seq/alg/src/subst_weight_matrix.hh
index 6cede33bd9b380c599aafb6c82f7f6582738ec16..7ccabc68f87a325c5d161623d2eff63446faf244 100644
--- a/modules/seq/alg/src/subst_weight_matrix.hh
+++ b/modules/seq/alg/src/subst_weight_matrix.hh
@@ -65,10 +65,10 @@ public:
   }
 
   /// \brief Get the minimal substitution weight of the matrix
-  WeightType GetMinWeight() { return min_weight_; }
+  WeightType GetMinWeight() const { return min_weight_; }
 
   /// \brief Get the maximal substitution weight of the matrix
-  WeightType GetMaxWeight() { return max_weight_; }
+  WeightType GetMaxWeight() const { return max_weight_; }
 
   /// \brief Set the substitution weight between two amino acids
   ///