Building and Testing an API Wrapper in Python