Python Identify Static Method Definition