SWF header parse based on Python