patch from Ben for user python scripts