Python Base Conversion Practice