Files now end with a single newline
* Move get_machine_info to lib * Add get platform info API * Create sonic_platform.py Signed-off-by: Sihui Han <sihan@microsoft.com>