Python implementation for testing PayPal