Adds part of @jcmuller's pryrc