Accept unicode strings from python functions