more python lib emulation