python classes are weird