Refactor alien language

- Apply PEP8
- Add tests
- Restructure file using main function
- Remove global variables
- Improve i/o file management