fixes #1 output parameter crash by importing os

output parameter can now be omitted safely with no crashing