Python - An object instantiated outside of a function. How can I access from the fuction? : Tried to access as argument of the function. Not working!

object = class()

def foo(object):
    object.method

foo()

Not working! Can't remember the error message. But its obviously not working!