python3: Add patch from Frode Solheim

From the FS-UAE project:

http://eab.abime.net/showpost.php?p=991970&postcount=2