tricky python lib