packaging: pythonlib: service: improvements

1. support with x as.

2. support random directory.

3. allow wrapped directory retrieval via property.

Related-To: https://bugzilla.redhat.com/show_bug.cgi?id=1059480
Change-Id: I1144a58d98760168ed24a93daae225ba769f42b7
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>