Add function to create PyStrings

Signed-off-by: Daniel Francis <francis@sugarlabs.org>