Fix limit_inplace
in python + 5x speedup
#7
Merged
limit_inplace
in python + 5x speedup
#7