stupid python mistake