Add explicit file encoding
Load API credentials from config file.
Introduce proper argument parsing. No more editing the script!