Use requests library instead of urllib and some formatting