Fix silly bugs in python binding hold() implementation