Updated to use newest version of requests. Added minimal tests.