Python player base class