Hi. I am trying to implement a user defined class with a single method so that its method can be used in the other scripts that I write. I have written an init() method for the class that does some initialization so that the single method can always run successfully. What I would like to know is how to go about making sure that the class and its single method are usable in other scripts that I write. Can someone tell me what I need to do so that it is? Also, if possible, can someone provide a simple example as to how to import the class and use its method? I am posting the simple class below. Any help would be greatly appreciated.

import requests

class Facebook:
  def __init__(self):
    s = requests.Session()
    s.auth = ('e-mail', 'password')

  def getFacebookURLContents(url):
    response = s.get(facebookURL)
    return response.text