Reusable Codes in Python