port strtol with python int() feature