Python Base Conversion Problems Chemistry