def _check_footer_magic_bytes(file_obj):
 file_obj.seek((-4), 2)
 magic = file_obj.read(4)
 return (magic == 'PAR1')

def _check_footer_magic_bytes ( file_obj ) : file_obj . seek ( ( - 4 ) , 2 ) magic = file_obj . read ( 4 ) return ( magic == 'PAR1' )
check if the file-like obj has the par1 magic bytes at the footer .