Backport function signature code from Python 3.3

Import PEP 362, function signatures, functionality from Python 3.3's
inspect module. Modifications have been made to make the code compatible
with Python 2.6 and 2.7, as well as 3.2+.
4 files changed