Use correct 'open' in python3

Remove test code