Parse a SWF.

    If you have a file object already, just use SWFParser directly.

    read_twips: True  - return values as read from the SWF
                False - return values in pixels (at 100% zoom)

def parsefile(filename, read_twips=True):
    """Parse a SWF.

    If you have a file object already, just use SWFParser directly.

    read_twips: True  - return values as read from the SWF
                False - return values in pixels (at 100% zoom)
    """
    with open(filename, 'rb') as fh:
        return SWFParser(fh, read_twips)