works with actual API, follows PEP8