Like @meep said, your `encrypt` function returns an invalid utf-8 sequence, which nimpy silently converts to python bytes as a fallback.
Question is what are you expecting to get on the python side? If string, what should it look like? If array, array of what? Btw, if you need a string with the hex representation, just use `return toHex($outpu1)` and `import strutils`. I would suggest that binary data is represented as `bytes` in python, which is what you're getting.
