Simple Python and Java wrapping for HTTP request