Wrapper for php functions to act more like python object methods.