Default mask for newly created files is 0666. (RhBug: 922557)
py: Use standard python exception while accessing bad attrs. (RhBug: 920673)