So it relaxes the imports (there may be several equally good relaxations so you might not see the same result).
For the full relaxedFBA you would have to add relaxations to the equality constraints as well and allow specifying the weights, but it would be the same strategy.
This is not implemented in cobrapy. But it is pretty straightforward. Here is an example on how to do it only for the bounds:
Which would give you the following output:
So it relaxes the imports (there may be several equally good relaxations so you might not see the same result).
For the full relaxedFBA you would have to add relaxations to the equality constraints as well and allow specifying the weights, but it would be the same strategy.