centralize to_python functionality. test min/max mx and int limits