Bug-fix: pass in open instruction as string not Python function