do not use python for this
use c++ instead