def convert_id3(id_64):
 _id = ((id_64 - ID_BASE) * 2)
 if ((_id % 2) == 0):
  _id += 0
 else:
  _id += 1
 actual = str((_id // 2))
 return 'U:1:{}'.format(actual)

def convert_id3 ( id_64 ) : _id = ( ( id_64 - ID_BASE ) * 2 ) if ( ( _id % 2 ) == 0 ) : _id += 0 else : _id += 1 actual = str ( ( _id // 2 ) ) return 'U:1:{}' . format ( actual )
takes a steam id_64 formatted id and returns a id_3 formatted id :typetype id_64: int :return: str .