context and pty spec cleanups

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>