Fix py-open