py: Allow x86 native functions to take arguments.

Fix some bugs with x86 stack and saving registers correctly.