python wants a file, not a directory (closes #3057)