Update test_panel.py
closes #12101

changed deprecated getargspec to signature for python 3 while keeping the getargspec for python 2

the compat changes need to be incorporated in this PR
 merged via https://github.com/pydata/pandas/commit/0b8fa9dcdb6f47e40441467dd7ebb529914bb719

thanks!
