Added support for compressed public keys to Script.to_pubkey_script_sig

This change is pretty small and straightforward. Let me know if you have any questions.