Rename qr_encode to qrencode._qrencode
Fix import for pillow compatibility
Add Python 3 compatibility