Follow the standard convention for python coding mentioned in pep8 guidelines. This is a good practice that you can follow from the starting only.
Apart from this somethings needs to be addressed:
- Lint your code properly and refactor the code to pep8 conventions. Refer this
- Follow standard naming conventions of variable. Lot of variance in naming of variables .
- Include error handling in API's call and exception throwing entrypoints.