ptcg.py: improved struct