fixed wrapped function information loss

for more details about this problem take a look at http://stackoverflow.com/questions/306130/python-decorator-makes-function-forget-that-it-belongs-to-a-class#306277 or http://stackoverflow.com/questions/308999/what-does-functools-wraps-do