reusable code written in python