Base Conversion In Python Mean